import {reqRegisterUser,reqRegisterCode} from '@/api/index'
const actions={
    //注册请求
    async getRegisterUser($store,data){
        let result=await reqRegisterUser(data);
        console.log(result);
        if (result.data.code==200) {
            return 'ok'
        }else{
            return Promise.reject([new Error("faile")])
        }
    },
    //验证码请求
    // async getRegisterCode($store,params){
    //     let result=await reqRegisterCode(params);
    //     console.log(result.data)
    // }
}; 
const mutations={};
const state={};
const getters={};
export default{actions,mutations,state,getters}